Page({
	data: {},
	onLoad: function(options) {
		this.setData(options)
	},
	refresh() {
		const pages = getCurrentPages()
		console.log(pages)
		if (pages.length > 1) {
			wx.reLaunch({
				url: '/' + pages[0].route
			})
		} else {
			wx.reLaunch({
				url: '/pages/home/index'
			})
		}
	}
})
